export function definestore(fn: () => any) {
  let state: Function
  return () => {
    if (state) return state
    const scope = effectScope(true)
    return (state = scope.run(fn))
  }
}
